package com.test.mapper;

import java.util.List;

import com.test.entity.SysDepartment;

public interface SysDepartmentMapper extends BaseMapper<SysDepartment> {

	/**
	 * 根据父级编码获取对应部门信息
	 * 
	 * @param 父级编码
	 * @return
	 */
	List<SysDepartment> listParentId(String parent_code);

	/**
	 * 根据部门编码删除部门信息
	 * 
	 * @param depart_code
	 * @return
	 */
	int removeByDepartCode(String depart_code);

	/**
	 * 根据部门信息条件查询对应部门详情
	 * @param department
	 * @return
	 */
	SysDepartment listDepartmentByParameter(SysDepartment department);
	
}
